<?php
$viewdefs ['Opportunities'] = 
array (
  'EditView' => 
  array (
    'templateMeta' => 
    array (
      'maxColumns' => '2',
      'widths' => 
      array (
        0 => 
        array (
          'label' => '10',
          'field' => '30',
        ),
        1 => 
        array (
          'label' => '10',
          'field' => '30',
        ),
      ),
      'javascript' => '{$PROBABILITY_SCRIPT}',
    ),
    'panels' => 
    array (
      'default' => 
      array (
        0 => 
        array (
          0 => 
          array (
            'name' => 'name',
            'displayParams' => 
            array (
              'required' => true,
            ),
          ),
          1 => 
          array (
            'name' => 'currency_id',
            'label' => 'LBL_CURRENCY',
          ),
        ),
        1 => 
        array (
          0 =>
          array(
              'name' => 'account_name',
              'label' => 'LBL_ACCOUNT_NAME',
              'customCode' => '<input type="text" autocomplete="off" title="" value="{$fields.account_name.value}" size="" id="account_name" tabindex="104" class="sqsEnabled yui-ac-input" name="account_name">
                <input type="hidden" value="{$fields.account_id.value}" id="account_id" name="account_id">
                <input type="button" onclick=\'open_popup("Accounts", 600, 400, "&special=true", true, false, {$encoded_popup_request_data}, "single", true);\' value="Wybierz" class="button" accesskey="T" title="Wybierz [Alt+T]" tabindex="104" id="btn_account_name" name="btn_account_name">
                <input type="button" value="Wyczyść" onclick="this.form.account_name.value = \'\'; this.form.account_id.value = \'\';" class="button" accesskey="C" title="Wyczyść[Alt+C]" tabindex="104" id="btn_clr_account_name" name="btn_clr_account_name">
                {$SECTION_JS}',
              'displayParams' =>array(
                       'required' => true,
                    )
          ),
//          array (
//            'name' => 'account_name',
//            'label' => 'LBL_ACCOUNT_NAME',
//            'displayParams' =>
//                    array(
//                      'initial_filter' => '&special=true',
//                       'required' => true,
//                    )
//          ),
          1 => 
          array (
            'name' => 'amount',
            'displayParams' => 
            array (
              'required' => true,
            ),
          ),
        ),
        2 => 
        array (
          0 => 
          array (
            'name' => 'opportunity_type',
            'comment' => 'Type of opportunity (ex: Existing, New)',
            'label' => 'LBL_TYPE',
          ),
          1 => 
          array (
            'name' => 'date_closed',
            'displayParams' => 
            array (
              'required' => true,
            ),
          ),
        ),
        3 => 
        array (
          0 => 
          array (
            'name' => 'lead_source',
            'comment' => 'Source of the opportunity',
            'label' => 'LBL_LEAD_SOURCE',
          ),
          1 => 
          array (
            'name' => 'next_step',
            'comment' => 'The next step in the sales process',
            'label' => 'LBL_NEXT_STEP',
          ),
        ),
        4 => 
        array (
          0 => 
          array (
            'name' => 'sales_stage',
            'displayParams' => 
            array (
              'required' => true,
            ),
          ),
          1 => 
          array (
            'name' => 'probability',
            'comment' => 'The probability of closure',
            'label' => 'LBL_PROBABILITY',
          ),
        ),
        5 => 
        array (
          0 => 
          array (
            'name' => 'assigned_user_name',
            'label' => 'LBL_ASSIGNED_TO_NAME',
          ),
          1 => 
          array (
            'name' => 'gruper_miasto_tematu_c',
            'studio' => 'visible',
            'label' => 'LBL_GRUPER_MIASTO_TEMATU',
          ),
        ),
        6 => 
        array (
          0 => 
          array (
            'name' => 'description',
            'comment' => 'Full text of the note',
            'label' => 'LBL_DESCRIPTION',
          ),
        ),
      ),
      'lbl_panel1' => 
      array (
        0 => 
        array (
          0 => 
          array (
            'name' => 'gruper_1_min_ilosc_c',
            'label' => 'LBL_GRUPER_1_MIN_ILOSC',
          ),
          1 => 
          array (
            'name' => 'gruper_2_max_ilosc_c',
            'label' => 'LBL_GRUPER_2_MAX_ILOSC',
          ),
        ),
        1 => 
        array (
          0 => 
          array (
            'name' => 'gruper_3_cena_jednostkowa_c',
            'label' => 'LBL_GRUPER_3_CENA_JEDNOSTKOWA',
          ),
          1 => 
          array (
            'name' => 'gruper_4_cena_jedn_gruper_c',
            'label' => 'LBL_GRUPER_4_CENA_JEDN_GRUPER',
          ),
        ),
        2 => 
        array (
          0 => 
          array (
            'name' => 'gruper_5_min_wart_tematu_c',
            'label' => 'LBL_GRUPER_5_MIN_WART_TEMATU',
          ),
          1 => 
          array (
            'name' => 'gruper_6_max_wart_tematu_c',
            'label' => 'LBL_GRUPER_6_MAX_WART_TEMATU',
          ),
        ),
        3 => 
        array (
          0 => 
          array (
            'name' => 'gruper_rabat_dla_klienta_c',
            'label' => 'LBL_GRUPER_RABAT_DLA_KLIENTA',
          ),
          1 => 
          array (
            'name' => 'gruper_prowizja_od_sprzedazy_g_c',
            'label' => 'LBL_GRUPER_PROWIZJA_OD_SPRZEDAZY_G',
          ),
        ),
        4 => 
        array (
          0 => 
          array (
            'name' => 'gruper_7_planowana_publikacja_c',
            'label' => 'LBL_GRUPER_7_PLANOWANA_PUBLIKACJA',
          ),
          1 => 
          array (
            'name' => 'gruper_czas_publikacji_c',
            'label' => 'LBL_GRUPER_CZAS_PUBLIKACJI',
          ),
        ),
        5 => 
        array (
          0 => 
          array (
            'name' => 'gruper_termin_waznosci_dni_c',
            'label' => 'LBL_GRUPER_TERMIN_WAZNOSCI_DNI',
          ),
          1 => 
          array (
            'name' => 'gruper_8_termin_waznosci_c',
            'label' => 'LBL_GRUPER_8_TERMIN_WAZNOSCI',
          ),
        ),
      ),
      'lbl_panel2' => 
      array (
        0 => 
        array (
          0 => 
          array (
            'name' => 'gruper_9_data_publikacji_c',
            'label' => 'LBL_GRUPER_9_DATA_PUBLIKACJI',
          ),
          1 => 
          array (
            'name' => 'gruper_10_ilosc_sprz_kuponow_c',
            'label' => 'LBL_GRUPER_10_ILOSC_SPRZ_KUPONOW',
          ),
        ),
        1 => 
        array (
          0 => 
          array (
            'name' => 'gruper_11_wartosc_dla_grupera_c',
            'label' => 'LBL_GRUPER_11_WARTOSC_DLA_GRUPERA',
          ),
          1 => 
          array (
            'name' => 'gruper_12_czy_powtorka_c',
            'studio' => 'visible',
            'label' => 'LBL_GRUPER_12_CZY_POWTORKA',
          ),
        ),
        2 => 
        array (
          0 => 
          array (
            'name' => 'gruper_13_kolejny_kontakt_c',
            'label' => 'LBL_GRUPER_13_KOLEJNY_KONTAKT',
          ),
          1 => '',
        ),
        3 => 
        array (
          0 => 
          array (
            'name' => 'gruper_14_feedback_c',
            'studio' => 'visible',
            'label' => 'LBL_GRUPER_14_FEEDBACK',
          ),
          1 => '',
        ),
      ),
    ),
  ),
);
?>
